﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Drempelvrij.Models.JSON
{

    public class RouteWrapper
    {
        public List<routes> routes { get; set; }
        public string status { get; set; }
    }

    public class routes
    {
        public bounds bounds { get; set; }
        public string copyrights { get; set; }
        public List<legs> legs { get; set; }
        public overview_polyline overview_polyline { get; set; }
        public string summary { get; set; }
        public string[] warnings { get; set; }
        public string[] waypoint_order { get; set; }
    }

    public class overview_polyline
    {
        public string points { get; set; }
    }

    public class bounds
    {
        public northeastsouthwest northeast { get; set; }
        public northeastsouthwest southwest { get; set; }
    }

    public class northeastsouthwest
    {
        public decimal lat { get; set; }
        public decimal lng { get; set; }
    }

    public class legs
    {
        public distance_duration distance { get; set; }
        public distance_duration duration { get; set; }
        public string end_address { get; set; }
        public start_end_location end_location { get; set; }
        public string start_address { get; set; }
        public start_end_location start_location { get; set; }
        public List<steps> steps { get; set; }
        public List<via_waypoint> via_waypoint { get; set; }
    }

    public class via_waypoint
    {
        public start_end_location location { get; set; }
        public decimal step_index { get; set; }
        public decimal step_interpolation { get; set; }
    }

    public class steps
    {
        public distance_duration distance { get; set; }
        public distance_duration duration { get; set; }
        public start_end_location end_location { get; set; }
        public string html_instructions { get; set; }
        public polyline polyline { get; set; }
        public start_end_location start_location { get; set; }
        public string travel_mode { get; set; }
    }

    public class polyline
    {
        public string points { get; set; }
    }

    public class distance_duration
    {
        public string text { private get; set; }
        public string value { get; set; }

        public string getText()
        {
            return "\"" + text + "\"";
        }
    }

    public class start_end_location
    {
        public decimal lat { get; set; }
        public decimal lng { get; set; }
    }
}
